<template>

  <div>

  </div>
</template>

<script>
  import {getUserInfo} from '@/api/user.js'
  import {reduceRequest} from '@/utils/reduceRequest.js';
  import {login1} from "@/api/user";
  import {reduceRequests1} from "@/utils/reduceRequest";

  export default {
    name: "Request",
    created() {
      // getUserInfo({name: 'admin'}).then(res => {
      //   console.log(res);
      // });
      //
      // reduceRequest(getUserInfo, {name: 'admin'}, 3000, 10).then(res => {
      //   console.log(res);
      // });
      reduceRequests1([login1,getUserInfo], [{username:'admin', password: 'admin'},{name: 'admin'}], 3000, 10).then(res => {
        console.log(res);
      }).catch(err=>{
        console.log(err);
      });
    }
  }
</script>

<style scoped>

</style>
